package cn.edu.zzuli.service;

import cn.edu.zzuli.dao.UserDao;
import cn.edu.zzuli.dao.UserDaoImpl;
import cn.edu.zzuli.dao.UserDaoMysqlImpl;

public class UserServiceImpl implements UserService {

    private UserDao userDao = new UserDaoMysqlImpl();

    //利用set 进行动态注入值
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void getUser() {
        userDao.getUser();
    }
}
